#include "BinaryIO.h"


BinaryIO::BinaryIO()
{

}


BinaryIO::~BinaryIO()
{
	m_fin.close();
	m_fout.close();
}


bool BinaryIO::OpenToRead(std::string fileName)
{
	m_fin.open(fileName.c_str(), std::ios_base::binary);

	return m_fin.is_open();
}


bool BinaryIO::OpenToWrite(std::string fileName)
{
	m_fout.open(fileName.c_str(), std::ios_base::binary);

	return m_fout.is_open();
}


void BinaryIO::CloseRead()
{
	m_fin.close();
}


void BinaryIO::CloseWrite()
{
	m_fout.close();
}


bool BinaryIO::ReadData(char** pData)
{

	return true;
}


bool BinaryIO::WriteData(char* pData)
{

	return true;
}


bool BinaryIO::ReadData(std::string fileName, char** pData)
{

	return true;
}


bool BinaryIO::WriteData(std::string fileName, char* pData)
{

	return true;
}


std::ifstream* BinaryIO::GetReadStream()
{
	return &m_fin;
}


std::ofstream* BinaryIO::GetWriteStream()
{
	return &m_fout;
}